#include "mysig.h"
void (*signal(int, void (*)(int))) (int);
static void my_handler(int);
int main() {
    char input[1024];
    int n;
    signal(SIGUSR1, my_handler);
    n = read(STDIN_FILENO, input, 1024);
    write(STDOUT_FILENO, input, n);
    return 0;
}

void my_handler(int sig) {
    printf("receive sig %d\n", sig);
}
